* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

  database connect time: 0.0294 seconds. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	12.2.2022 	15:04:34 	lx 	(1. Application process)

Tcp server 2 start check: start. 	12.2.2022 	15:04:34 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	12.2.2022 	15:04:34 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

  database connect time: 0.0151 seconds. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01376072f0, size: 400. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

All plugins have been loaded. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/path.json. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

--- server started in 0.1641 seconds, 2022-02-12 15:04:36, used memory 3224.1 kb --- 	 5. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	12.2.2022 	15:04:36 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-02-12 15:07:51
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 1048
Content-Uncompressed-Length: 1659

LZ4. 	12.2.2022 	15:07:51 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	12.2.2022 	15:07:51 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	12.2.2022 	15:07:51 	lx 	(5. palvelin)

  database connect time: 0.0073 seconds. 	12.2.2022 	15:07:51 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	12.2.2022 	15:07:51 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	12.2.2022 	15:07:51 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.07439
  
SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 LEFT OUTER JOIN company co ON co.company_id = inv.company_id
 WHERE inv.company_id IN ('1057')
 ORDER BY inv.invoice_id. 	12.2.2022 	15:07:51 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	12.2.2022 	15:07:59 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	12.2.2022 	15:08:00 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	12.2.2022 	15:08:00 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 320 bytes ***. 	12.2.2022 	18:40:03 	lx 	(5. palvelin)

closing socket '77'. 	12.2.2022 	18:40:03 	lx 	(5. palvelin)

